<?xml version="1.0" encoding="UTF-8"?>
<%@ page language="java" contentType="text/xml; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="com.estore.db.beans.CategoryBean"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<jsp:useBean id="categories" scope="request" class="java.util.ArrayList" />
<estore>
	<categories>
			<logic:iterate id="category" name="categories">
				<category level="<bean:write name="category" property="catLevel"/>">
					<id><bean:write name="category" property="ID"/></id>
					<name><bean:write name="category" property="catLevelName"/></name>
					<description><bean:write name="category" property="description"/></description>
					<htmldescription><bean:write name="category" property="htmlDescription"/></htmldescription>
				</category>
			</logic:iterate>
	</categories>
	<jsp:include page="/pages/success.xml" />
</estore>